/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ta.entity;

import org.hibernate.validator.constraints.Length;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户签名管理Entity
 * 
 * @author TTAO
 * @version 2017-05-31
 */
public class StUserSign extends DataEntity<StUserSign> {

	private static final long serialVersionUID = 1L;
	private String userid; // 用户ID
	private Date savedate; // 保存日期
	private byte[] signpic; // 签名内容
	private String magicnum; // 签名图片
	private String stUser; // 用户

	public StUserSign() {
		super();
	}

	public StUserSign(String id) {
		super(id);
	}

	@Length(min = 1, max = 36, message = "用户ID长度必须介于 1 和 36 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message = "保存日期不能为空")
	public Date getSavedate() {
		return savedate;
	}

	public void setSavedate(Date savedate) {
		this.savedate = savedate;
	}

	public byte[] getSignpic() {
		return signpic;
	}

	public void setSignpic(byte[] signpic) {
		this.signpic = signpic;
	}

	@Length(min = 1, max = 36, message = "签名图片长度必须介于 1 和 36 之间")
	public String getMagicnum() {
		return magicnum;
	}

	public void setMagicnum(String magicnum) {
		this.magicnum = magicnum;
	}

	public String getStUser() {
		return stUser;
	}

	public void setStUser(String stUser) {
		this.stUser = stUser;
	}

}